package com.lanou3g.demo.service.admininfo;

import com.lanou3g.demo.entity.AdminInfo;
import com.lanou3g.demo.entity.AdminRole;
import com.lanou3g.demo.entity.ex.AdminWithRole;

import java.util.List;


public interface IAdminInfoService {

    int totalCount();

    AdminInfo findOneByAdminId(Integer id);

    List<AdminWithRole> findAll(Integer page,Integer count,String searchMsg);

    int deleteAdmin(Integer adminId);

    int updateAdmin(AdminInfo adminInfo,String allRole);

    int addOneAdmin(AdminInfo adminInfo, String allRole);

    int addOneRole(AdminRole adminRole);

}
